# VERSION 0.0.1
# 默认ubuntu server长期支持版本，当前是14.04
FROM ubuntu:14.04

# 签名
MAINTAINER yangpengfei "jrunner@126.com"

# 更新源，安装vim
RUN apt-get update
RUN apt-get install -y vim
RUN export DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y mysql-server

RUN echo "添加脚本及文件"
ADD my.cnf /etc/mysql/my.cnf
ADD run.sh /opt/bin/run.sh
RUN chmod 755 /opt/bin/*.sh

#开放端口
EXPOSE 3306

CMD ["/etc/init.d/mysql","start"]

